package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.MailLog;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2020-09-07
 */
public interface MailLogMapper extends BaseMapper<MailLog> {


    //根据邮箱查询数据
    MailLog selectInfoByEmail(String to);

    //获取全部投递失败的数据
    List<MailLog> listAllFailed();

    //通过id获取邮箱地址
    String getEmailByMsgId(String msgId);

    //更新数据
    void updateStatus(MailLog mailLog);

    MailLog getMaillogByMsgId(String msgId);
}
